Skip to content

fix: replace hardcoded Ollama URL with config.ai_base_url() - #798

Open
venge666 wants to merge 1 commit into
Z4nzu:masterfrom
venge666:fix/ollama-hardcoded-url
Open

venge666 wants to merge 1 commit into
Z4nzu:masterfrom
venge666:fix/ollama-hardcoded-url

Conversation

@venge666

Copy link
Copy Markdown

No description provided.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@venge666

Copy link
Copy Markdown
Author

Problem

The Ollama URL was hardcoded to http://localhost:11434/api/generate, ignoring the user's configuration. On some systems localhost resolves to IPv6 and Ollama does not respond.

Fix

  • ai_recommend.py: replaced the hardcoded _OLLAMA_URL with an _ollama_url() function that uses config.ai_base_url().
  • cli.py: error messages now show the actual configured URL instead of a fixed :11434.

If nothing is configured, it falls back to http://127.0.0.1:11434.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant